package com.wx.adapter.http.wx.ma;

import com.wx.adapter.http.wx.ma.domain.dto.MaSubscribeSendResultDTO;
import com.wx.adapter.http.wx.ma.domain.req.SubscribeMessageDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * wx_back_end
 *
 * @Auther: cheng.tang
 * @Date: 2023/3/3 10:59 PM
 * @Description:
 */
@FeignClient(name = "MiniProgramMessageFeign", url = "https://api.weixin.qq.com")
public interface MiniProgramMessageFeign {

    /**
     * 发送小程序订阅消息
     *
     * @param subscribeMessageDTO
     */
    @PostMapping("/cgi-bin/message/subscribe/send")
    MaSubscribeSendResultDTO messageSubscribeSend(@RequestParam("access_token") String access_token,@RequestBody SubscribeMessageDTO subscribeMessageDTO);

}
